#!/bin/bash
redispath="/data/home/wf/redis/"
gdbpath="/data/home/xiaoq/dataset/gdb-gz/"
glibcpath="/data/home/xiaoq/dataset/glibc_restore/"
gccpath="/data/home/xiaoq/dataset/gcc-gz/"
vmapath="/data/home/xiaoq/dataset/vma/vma_tar/"
linuxpath="/data/home/xiaoq/dataset/linux/"
smalllinuxpath="/data/home/xiaoq/dataset/linux/smalllinux/"
rdbpath="/data/home/xiaoq/dataset/RDB_restore/"
vmdkpath="/data/home/xiaoq/dataset/vmdk-1-restore/"
benchpath="/data/home/xiaoq/dataset/bench/"

path=$linuxpath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild

path=$gccpath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild

path=$rdbpath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild

path=$vmdkpath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild

path=$benchpath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild

path=$vmapath
for file in $(ls $path);do
    ./destor $path/$file
done
./destor -s >> mylog
./rebuild



